Vue.filter("date2datetime",function (value,format){
    return dateFormat(value,format);
});
Vue.filter("timestamp2datetime",function (value,format){
    return timestampFormat(value,format);
});
Vue.filter("array2string",function (value){
    return value.toString();
});


Vue.filter("gender2text",function (value){
    return parseInt(value) > 0 ? '男' : '女';
});

Vue.filter("timestampStr",function (value){
    if(value === undefined){
        return ''
    }
    return moment(new Date(value)).format("YYYY-MM-DD HH:mm:ss")
});

